package com.ruoyi.inventory.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 出入库明细对象 t_warehouse_transaction_item
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
public class TWarehouseTransactionItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 出入库单号 */
    @Excel(name = "出入库单号")
    private String txNo;

    /** 备件编码 */
    @Excel(name = "备件编码")
    private String partNo;

    /** 数量 */
    @Excel(name = "数量")
    private BigDecimal quantity;

    /** IN/OUT */
    @Excel(name = "IN/OUT")
    private String direction;

    /** 逻辑删除:0未删 1已删 */
    @Excel(name = "逻辑删除:0未删 1已删")
    private Integer isDelete;

    /** 备件名称（关联查询字段） */
    @Excel(name = "备件名称")
    private String partName;

    /** 规格型号（关联查询字段） */
    @Excel(name = "规格型号")
    private String specNo;

    /** 备件类型编码（关联查询字段） */
    @Excel(name = "备件类型编码")
    private String partTypeCode;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTxNo(String txNo) 
    {
        this.txNo = txNo;
    }

    public String getTxNo() 
    {
        return txNo;
    }

    public void setPartNo(String partNo) 
    {
        this.partNo = partNo;
    }

    public String getPartNo() 
    {
        return partNo;
    }

    public void setQuantity(BigDecimal quantity) 
    {
        this.quantity = quantity;
    }

    public BigDecimal getQuantity() 
    {
        return quantity;
    }

    public void setDirection(String direction) 
    {
        this.direction = direction;
    }

    public String getDirection() 
    {
        return direction;
    }

    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }

    public void setPartName(String partName) 
    {
        this.partName = partName;
    }

    public String getPartName() 
    {
        return partName;
    }

    public void setSpecNo(String specNo) 
    {
        this.specNo = specNo;
    }

    public String getSpecNo() 
    {
        return specNo;
    }

    public void setPartTypeCode(String partTypeCode) 
    {
        this.partTypeCode = partTypeCode;
    }

    public String getPartTypeCode() 
    {
        return partTypeCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("txNo", getTxNo())
            .append("partNo", getPartNo())
            .append("quantity", getQuantity())
            .append("direction", getDirection())
            .append("remark", getRemark())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
